package com.hz.house.enums;

/**
 * 物业类型枚举
 * @author lfw
 *
 */
public enum PropertyType {

	//住宅
    residence("住宅"),
    
    //别墅
    villa("别墅"),
    
    //写字楼
    officeBuilding("写字楼"),
    
    //商铺
    shopBusiness("商铺"),
    
    //商办公寓
    apartment("商办"),
    
    //复合地产
    complex("复合地产"),
   
    //车位
    carport("车位"),
    //人才公寓
    talentApartment("人才公寓"),
    yangfang("洋房"),
    shangshu("商墅");
	
	private String type;

	PropertyType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }
    
    
   public static PropertyType getPropTypeByName(String name) {
	   
	   PropertyType[] all =PropertyType.values();
	   for(PropertyType p:all) {
		   if(name.equals(p.name()))
			   return p;
	   }
	   return null;
   }
    
	
}
